import requests

url = "https://tieba.baidu.com/f/commit/commonapi/antiGetCaptchaNew"

data = {
    "t": "1735216004962"
}

headers = {
    "User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36"
}

response = requests.get(url,params=data,headers=headers)

with open("test.html","w",encoding="utf-8") as f:
    f.write(response.text)

print(response.json())
